//
//  HomeCircleView.h
//  汽车大灯色温蓝牙
//
//  Created by dfwx on 2020/9/9.
//  Copyright © 2020 zhongdaodianzi. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

#define lin_width  8

@protocol HomeCircleViewDelegate <NSObject>

- (void)HomeCircleViewCircleClickedActionWith:(CGFloat)value;
- (void)HomeCircleViewCircleMoveActionWith:(CGFloat)value;
- (void)HomeCircleViewCircleStartActionWith:(CGFloat)value;
- (void)HomeCircleViewCircleEndLearnActionWith:(CGFloat)value;


@end

@interface HomeCircleView : UIView

@property (nonatomic, assign) CGFloat angle;
@property (nonatomic, strong) UIImageView *circleBackImageView;
@property (nonatomic, strong) UIImageView *circleImageView;
@property (nonatomic, assign) NSInteger number;
@property (nonatomic, strong) UIImageView *backImageView;
@property (nonatomic, strong) UILabel *centerLabel;

@property (nonatomic, strong) NSTimer *timer;
@property (nonatomic, assign) CGPoint startPoint;
@property (nonatomic, assign) BOOL isChange;

@property (nonatomic, strong) NSTimer *changeTimer;
@property (nonatomic, assign) CGFloat currentPoint;
@property (nonatomic, assign) CGFloat lastPoint;

@property (nonatomic, assign) CGFloat startAngle;
@property (nonatomic, assign) CGPoint locationPoint;
//@property (nonatomic, assign) 


@property (nonatomic, assign) id <HomeCircleViewDelegate> delegate;


@end

NS_ASSUME_NONNULL_END
